package com.ruoyi.email.mapper;

import java.util.List;

import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.email.domain.TmdEmailWrite;
import com.ruoyi.email.vo.TmdEmailWriteAndSysUser;

/**
 * 写信Mapper接口
 * 
 * @author ruoyi
 * @date 2024-04-20
 */
public interface TmdEmailWriteMapper 
{

    /**
     * 查询写信
     * 
     * @param id 写信主键
     * @return 写信
     */
    public TmdEmailWrite selectTmdEmailWriteById(Long id);

    /**
     * 查询写信列表
     * 
     * @param tmdEmailWrite 写信
     * @return 写信集合
     */
    public List<TmdEmailWriteAndSysUser> selectTmdEmailWriteList(TmdEmailWrite tmdEmailWrite);

    /**
     * 新增写信
     * 
     * @param tmdEmailWrite 写信
     * @return 结果
     */
    public int insertTmdEmailWrite(TmdEmailWrite tmdEmailWrite);

    /**
     * 修改写信
     * 
     * @param tmdEmailWrite 写信
     * @return 结果
     */
    public int updateTmdEmailWrite(TmdEmailWrite tmdEmailWrite);

    /**
     * 删除写信
     * 
     * @param id 写信主键
     * @return 结果
     */
    public int deleteTmdEmailWriteById(Long id);

    /**
     * 批量删除写信
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTmdEmailWriteByIds(String[] ids);
    public List<SysUser> selectUserName();
}
